import request from '@/utils/request'

// 查询成绩单列表
export function listItem(query) {
  return request({
    url: '/transcript/item/list',
    method: 'get',
    params: query
  })
}

// 查询成绩单详细
export function getItem(id) {
  return request({
    url: '/transcript/item/' + id,
    method: 'get'
  })
}

// 新增成绩单
export function addItem(data) {
  return request({
    url: '/transcript/item',
    method: 'post',
    data: data
  })
}

// 修改成绩单
export function updateItem(data) {
  return request({
    url: '/transcript/item',
    method: 'put',
    data: data
  })
}

// 删除成绩单
export function delItem(id) {
  return request({
    url: '/transcript/item/' + id,
    method: 'delete'
  })
}
